<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>wangEditor2 test</title>
    <link rel="stylesheet" type="text/css" href="../dist/css/wangEditor.min.css">
</head>
<body>
<div id="div1"></div>
<button id="btn1">test</button>

<script type="text/javascript" src="../dist/js/lib/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../dist/js/wangEditor.js"></script>
<script type="text/javascript">
    $('#btn1').click(function () {
        var $input = $('<input type="file" accept="image/jpg,image/jpeg,image/png"/>');
        $('#div1').append($input)
        $input.click();
    })
</script>
</body>
</html>
